const app = getApp();

const imageUrl = "https://rzshop.ie1e.com"
//const baseUrl = 'http://192.168.8.154:40071' //日杨
const baseUrl = 'http://192.168.8.109:40071' //杨成
//const baseUrl = "https://testhhppapi.hoshiibuy.com" //测试环境
// const baseUrl = "https://hhppapi.hoshiibuy.com"       //生产环境



module.exports = {
  Url_wx_login: baseUrl + "/login/loginByWeChat", //微信登录
  Url_tt_login: baseUrl + "/login/loginByTouTiao", //头条登录
  Url_code_login: baseUrl + "/login/loginByCode", //手机短信验证码登录
  Url_check_wx_login: baseUrl + "/login/loginByWeChatResident", //微信常驻登录
  Url_wx_get_verify_code: baseUrl + "/login", //获取短信验证码,
  Url_user_code: baseUrl + "/login/getUserEncryptCode", //获取用户加密码
  Url_user_get_share_info: baseUrl + "/login/getShareInfo", //获取分享信息
  Url_get_scene_share_info: baseUrl + "/login/getShareInfoByScene", //根据scene获取分享信息
  Url_get_consumer_by_id: baseUrl + "/login/getConsumerById", //根据用户ID获取消费者信息

  //店铺
  Url_get_nearest_shop: baseUrl + "/store/getNearestStore", //获取当前定位最近的一家店铺
  Url_query_shops: baseUrl + "/store/storeRangeCalculation", //查询店铺列表
  Url_get_shop: baseUrl + "/store/query", //查询店铺详情
  Url_get_shop_categories: baseUrl + "/store/getCategoriesByStoreId", //查询店铺类目
  Url_get_category_and_goods: baseUrl + "/store/getCategoryAndGoods", //查询商品列表
  Url_get_stores_by_user_id: baseUrl + "/store/getStoresByUserId", //查询店铺列表
  Url_get_stores_by_plat_id: baseUrl + "/store/getStoresByPlatId", //查询店铺列表
  Url_batch_update_stores: baseUrl + "/store/batchUpdateStores", //批量更新店铺经纬度

  //商品
  Url__query_category_goods: baseUrl + "/goods/getGoodsListByCategoryId", //根据类目查询商品列表
  Url_home_goods: baseUrl + "/goods/getGoodsList", //查询首页商品列表
  Url_query_home_banner: baseUrl + "/goods/getBanners", //查询首页轮播图        
  Url_get_goods_detail: baseUrl + "/goods/getGoodsDetail", //查询购物车详情


  //购物车
  Url_query_cart_count: baseUrl + "/cart/getPage", //查询购物车数量
  Url_add_cart: baseUrl + "/cart/add", //加入购物车
  Url_update_cart: baseUrl + "/cart/update", //更新购物车
  Url_delete_cart: baseUrl + "/cart/delete", //删除购物车
  Url_delete_cart_by_storeId: baseUrl + "/cart/deleteByUserIdAndStoreId", //根据店铺ID批量删除

  //收货地址
  Url_query_address: baseUrl + "/address/viewAddress", //查询收货地址
  Url_add_address: baseUrl + "/address/addAddress", //新增收货地址
  Url_update_address: baseUrl + "/address/updateAddress", //更新地址
  Url_delete_address: baseUrl + "/address/deleteAddress", //删除收货地址

  //物流
  Url_query_logistics_detail: baseUrl + "/logistics/query", //查询物流详情    

  //订单
  Url_order_query_list: baseUrl + "/order/list", //查询订单列表
  Url_order_buy_list: baseUrl + "/order/queryOrdersWithUserInfo", //查询商品购买记录
  Url_order_query_store_list: baseUrl + "/order/store/list", //查询店铺订单列表
  Url_order_query_store_delivery_list: baseUrl + "/order/store/listByDeliveryTime", //查询店铺订单按提货时间排序列表
  Url_order_query_detail: baseUrl + "/order/detail", //查询订单详情
  Url_order_submit: baseUrl + "/order/submit", //提交订单
  Url_order_pay: baseUrl + "/order/pay", //支付订单
  Url_order_delete: baseUrl + "/order/delete", //删除订单   
  Url_order_cancel: baseUrl + "/order/cancel", //取消订单             
  Url_order_refund: baseUrl + "/order/refund", //订单退款    
  Url_order_verification_store: baseUrl + "/verification/orderId", //订单核销
  Url_all_order_verification_store: baseUrl + "/verification/storeIdAndMemberId", //订单批量核销
  Url_order_update_status: baseUrl + "/order/update/status", //修改订单状态
  Url_order_verification_list: baseUrl + "/order/listByStoreIdAndMemberId", //获取待核销订单
  Url_notify_buyer_by_store: baseUrl + "/order/notifyBuyersByStoreId", //一键提醒当天及以前待提货的买家
  Url_notify_buyer_by_order: baseUrl + "/order/notifyBuyerByOrderId", //提醒某个待提货的订单的买家
  Url_get_user_contacts: baseUrl + "/order/getHistoryConsigneeAndTelephone", //查询用户历史收货人和电话

  //售后
  Url_after_sale_info: baseUrl + "/refund-order/applyAfterSaleInfo", //申请售后页面数据
  Url_list_refund_order: baseUrl + "/refund-order/pageRefundOrder", //售后列表
  Url_refund_apply: baseUrl + "/refund-order/refundApply", //售后申请
  Url_refund_cancel: baseUrl + "/refund-order/refundCancel", //售后取消
  Url_refund_detail: baseUrl + "/refund-order/refundDetail", //售后详情
  Url_refund_detail2: baseUrl + "/refund-order/refundDetail2", //售后详情
  Url_refund_re_apply: baseUrl + "/refund-order/refundReApply", //重新发起售后
  Url_refund_upload_file: baseUrl + "/refund-order/uploadFile", //售后图片上传

  //提现，签约
  Url_withdrawal_apply: "http://devops.btogether.cn:40141/gongmao/withdrawal/withdrawalApply", //申请提现
  Url_contract_platform: "http://devops.btogether.cn:40141/userInfo/contractPlatform", //进行签约
  Url_subscription_information: "http://devops.btogether.cn:40141/userInfo/subscriptionInformation", //查询是否签约
  Url_contract_record: "http://devops.btogether.cn:40141/userInfo/contractRecord", //查询签约记录
}